<?php

namespace Core\Service\Parameterchooser;

use Core\Config;
use Core\Helper\CommonHelper;

class ParameterChooserGender implements ParameterChooserInterface
{


    public function genHtml()
    {
        $rand_string = CommonHelper::rand_string(4);
        $allGender = Config::getDanhMucConfig()->gender;
        $html = '<select style="padding:7px;" class="txt_param_holder" id="cboGender_'.$rand_string.'">';

        foreach ($allGender as $key => $val) {
                $html = $html.'<option value="'.$key.'">'.$val.'</option>';
        }
        $html = $html.'</select>';
        return $html;
    }
}
